package com.xiangshizhineng.tianzhangzhi.app.common.base;


import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletRequest;


public interface BaseService<T extends BaseEntity> {

    T packAddBaseProps(T base, HttpServletRequest request);

    Object packAddJSONObjectProps(JSONObject json, HttpServletRequest request);

    T packModifyBaseProps(T base, HttpServletRequest request);

    Long getUserId(HttpServletRequest request) ;

    String getIp(HttpServletRequest request);
}
